/* 
 * File:   ErrorCommand.h
 * Author: Bram
 *
 * Created on January 21, 2013, 11:54 PM
 */

#ifndef ERRORCOMMAND_H
#define	ERRORCOMMAND_H

#include "Command.h"

class ErrorCommand : public Command
{
public:
    ErrorCommand();
    ErrorCommand(const char *);
    ErrorCommand(const ErrorCommand& orig);
    virtual ~ErrorCommand();
    Command* createNew();
    bool isValid();
    void ExcecuteServerReceiveCommand(TcpSocket* dasSocket, queue<Command *>& commandQueue);
    void ExcecuteServerSendCommand(TcpSocket* dasSocket, queue<Command *>& commandQueue);
    
    void ExcecuteClientReceiveCommand(TcpSocket* dasSocket, queue<Command *>& commandQueue);
    void ExcecuteClientSendCommand(TcpSocket* dasSocket, queue<Command *>& commandQueue);
    
    static Command* initializeWithErrorMessage(const string&);
    
private:
    static ErrorCommand cInstance;

};

#endif	/* ERRORCOMMAND_H */

